package com.yoda.controller;


import com.yoda.result.Result;
import com.yoda.service.ISysConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author itcast
 * @since 2023-05-15
 */
@RestController
@RequestMapping("/sys_config")
public class SysConfigController {
    @Autowired
    private ISysConfigService configService;

    /**
     * 查询站点配置信息
     * @return
     */
    @GetMapping("/all")
    public Result all(){
        return configService.all();
    }
}

